package com.library.books.domain.wsdata;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.library.common.annotation.Excel;
import com.library.common.wspoint.WsDataInterface;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Package: com.library.books.domain.wsdata
 * @ClassName: BookOnRenew
 * @Author: Yin
 * @Date: 16:49
 * @Description: 书籍续借数据
 */
public class BookOnRenew implements WsDataInterface {

    @Setter
    private List<BookOnRenewMessage> list;

    @Override
    public String getType() {
        return "BookRenew";
    }

    @Override
    public List<BookOnRenewMessage> getData() {
        return list;
    }

    @Data
    public static class BookOnRenewMessage {

        /** 书籍名 */
        private String booksName;

        /** 索书号-小分类 */
        private String booksCopyLicense;

        /** 续借天数 */
        private Integer borrowRenewDays;

        /** 续借时间 */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date borrowRenewTime;

        /** 操作平台 */
        private String operateTerrace;

    }
}
